//package com.woniu.user.util;
//
//import org.springframework.web.context.request.RequestContextHolder;
//import org.springframework.web.context.request.ServletRequestAttributes;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//public class WebUtil {
//
//    public static HttpServletRequest getRequest() {
//        ServletRequestAttributes sra = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
//        return sra.getRequest();
//    }
//
//    public static HttpServletResponse getResponse() {
//        ServletRequestAttributes sra = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes();
//        return sra.getResponse();
//    }
//
//
//}
